﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tracy.DataModel;

namespace Tracy.Plugins.DownloadAdapters
{
    public class ThunderAdapter : IDownloadAdapter
    {
        
        public void Download(Resource resource, string defaultPath)
        {
            ThunderAgentLib.Agent agent = new ThunderAgentLib.Agent();
            string description = "Sent from Tracy\n" + resource.Title;
            agent.AddTask(resource.Url, null, defaultPath, description, "", -1, 0, -1);
            agent.CommitTasks();
            
        }
    }
}
            
